package com.weixing.mall.provider.model.dto.cms;

import com.weixing.mall.base.enums.IsEnableEnum;
import com.weixing.mall.provider.model.enums.cms.BannerLocEunm;
import com.weixing.mall.provider.model.enums.cms.BannerTypeEunm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName BannerDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/7/26
 * @Version 1.0
 **/
@Data
@ApiModel(description = "轮播图")
public class BannerDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "轮播图名字")
    @NotNull(message = "轮播图名字不能为空")
    private String bannerName;

    @ApiModelProperty(value = "轮播图URL")
    @NotNull(message = "轮播图URL不能为空")
    private String bannerUrl;

    @ApiModelProperty(value = "图像地址")
    @NotNull(message = "图像地址不能为空")
    private String bannerImg;

    @ApiModelProperty(value = "展示位置 1首页；2时尚专区；3专柜；4饰品；5活动")
    @NotNull(message = "展示位置不能为空")
    private BannerLocEunm bannerLoc;

    @ApiModelProperty(value = "轮播图类型 1轮播图 2闪屏图")
    @NotNull(message = "轮播图类型不能为空")
    private BannerTypeEunm bannerType;

    @ApiModelProperty(value = "状态是否可用 0禁用；1可用")
    @NotNull(message = "状态不能为空")
    private IsEnableEnum isEnable;

}
